<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* 多语言 按钮的宽度会变化 要设置最小和最大宽度 */
    .box {
      min-width: 100px;
      max-width: 100px;
      width: auto;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  </style>
</head>
<body>
  <button class="box">操作</button>
</body>
</html>